import request from '@/utils/request'

// 查询专属权益列表
export function listProductPrivileges(query) {
  return request({
    url: '/system/ProductPrivileges/list',
    method: 'get',
    params: query
  })
}

// 查询专属权益详细
export function getProductPrivileges(ID) {
  return request({
    url: '/system/ProductPrivileges/' + ID,
    method: 'get'
  })
}

// 新增专属权益
export function addProductPrivileges(data) {
  return request({
    url: '/system/ProductPrivileges',
    method: 'post',
    data: data
  })
}

// 修改专属权益
export function updateProductPrivileges(data) {
  return request({
    url: '/system/ProductPrivileges',
    method: 'put',
    data: data
  })
}

// 删除专属权益
export function delProductPrivileges(ID) {
  return request({
    url: '/system/ProductPrivileges/' + ID,
    method: 'delete'
  })
}
